<T:ViewBase x:Class="WPFExcelReport.TQGKREGEL02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRGKREGEL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRGKREGEL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRBEZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRBEZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRSTATUS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRSTATUS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRWAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRWAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QGRKUNDE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQGKREGEL.QGRKUNDE}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsQGKREGEL,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwQGKREGEL}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwQGKREGEL, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="QGRMANDANT"
                                    Binding="{Binding Path=QGRMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRGKREGEL"
                                    Binding="{Binding Path=QGRGKREGEL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRGKREGEL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRAENZL"
                                    Binding="{Binding Path=QGRAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRAENB"
                                    Binding="{Binding Path=QGRAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRAEND"
                                    Binding="{Binding Path=QGRAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRNEUB"
                                    Binding="{Binding Path=QGRNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRNEUD"
                                    Binding="{Binding Path=QGRNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRBEZ"
                                    Binding="{Binding Path=QGRBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRSTATUS"
                                    Binding="{Binding Path=QGRSTATUS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRSTATUS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRWAKZ"
                                    Binding="{Binding Path=QGRWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRKUNDE"
                                    Binding="{Binding Path=QGRKUNDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRKUNDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRWRK"
                                    Binding="{Binding Path=QGRWRK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRWRK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRABTL"
                                    Binding="{Binding Path=QGRABTL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRABTL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRART"
                                    Binding="{Binding Path=QGRART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVAR"
                                    Binding="{Binding Path=QGRVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRFARBE"
                                    Binding="{Binding Path=QGRFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRDESSIN"
                                    Binding="{Binding Path=QGRDESSIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRDESSIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRCOLORIT"
                                    Binding="{Binding Path=QGRCOLORIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRCOLORIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRBESCH"
                                    Binding="{Binding Path=QGRBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRPROGRP"
                                    Binding="{Binding Path=QGRPROGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRPROGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRARTGRP"
                                    Binding="{Binding Path=QGRARTGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRARTGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVKUNDE"
                                    Binding="{Binding Path=QGRVKUNDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVKUNDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVB"
                                    Binding="{Binding Path=QGRVB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVG"
                                    Binding="{Binding Path=QGRVG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRBRANCHE"
                                    Binding="{Binding Path=QGRBRANCHE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRBRANCHE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRABNGRP"
                                    Binding="{Binding Path=QGRABNGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRABNGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRLAND"
                                    Binding="{Binding Path=QGRLAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRLAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRKOLL"
                                    Binding="{Binding Path=QGRKOLL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRKOLL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVART"
                                    Binding="{Binding Path=QGRVART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVFARBE"
                                    Binding="{Binding Path=QGRVFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRVDESS"
                                    Binding="{Binding Path=QGRVDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRVDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRFKATALOG"
                                    Binding="{Binding Path=QGRFKATALOG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRFKATALOG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QGRFILLER"
                                    Binding="{Binding Path=QGRFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QGRFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
